<template>
    <div class="model-form">
        <el-page-header @back="goBack" content="详情">
        </el-page-header>
        <el-form class="viewForm" label-width="80px">
                    <el-col :span="12">
                        <el-form-item label="姓名">
                            <div v-html="viewModel.customerName"></div>
                        </el-form-item>
                    </el-col>
                    <el-col :span="12">
                        <el-form-item label="类型">
                            <div v-html="viewModel.orderTypeName"></div>
                        </el-form-item>
                    </el-col>
                    <el-col :span="12">
                        <el-form-item label="重量">
                            <div v-html="viewModel.weight"></div>
                        </el-form-item>
                    </el-col>
                    <el-col :span="12">
                        <el-form-item label="数量">
                            <div v-html="viewModel.num"></div>
                        </el-form-item>
                    </el-col>
                    <el-col :span="12">
                        <el-form-item label="原价">
                            <div v-html="viewModel.totalAmount"></div>
                        </el-form-item>
                    </el-col>
                    <el-col :span="12">
                        <el-form-item label="应付金额">
                            <div v-html="viewModel.amount"></div>
                        </el-form-item>
                    </el-col>
                    <el-col :span="12">
                        <el-form-item label="运费">
                            <div v-html="viewModel.freight"></div>
                        </el-form-item>
                    </el-col>
                    <el-col :span="12">
                        <el-form-item label="餐盒费">
                            <div v-html="viewModel.mealFee"></div>
                        </el-form-item>
                    </el-col>
                    <el-col :span="12">
                        <el-form-item label="整单折扣">
                            <div v-html="viewModel.changeAmount"></div>
                        </el-form-item>
                    </el-col>
                    <el-col :span="12">
                        <el-form-item label="实际支付金额">
                            <div v-html="viewModel.payAmount"></div>
                        </el-form-item>
                    </el-col>
                    <el-col :span="12">
                        <el-form-item label="卖家优惠券总金额">
                            <div v-html="viewModel.discount"></div>
                        </el-form-item>
                    </el-col>
                    <el-col :span="12">
                        <el-form-item label="平台优惠券总金额">
                            <div v-html="viewModel.platformDiscount"></div>
                        </el-form-item>
                    </el-col>
                    <el-col :span="12">
                        <el-form-item label="积分抵扣">
                            <div v-html="viewModel.integralDiscount"></div>
                        </el-form-item>
                    </el-col>
                    <el-col :span="12">
                        <el-form-item label="使用积分数">
                            <div v-html="viewModel.useIntegral"></div>
                        </el-form-item>
                    </el-col>
                    <el-col :span="12">
                        <el-form-item label="使用红包">
                            <div v-html="viewModel.useRedPacket"></div>
                        </el-form-item>
                    </el-col>
                    <el-col :span="12">
                        <el-form-item label="满减金额">
                            <div v-html="viewModel.reduceMoney"></div>
                        </el-form-item>
                    </el-col>
                    <el-col :span="12">
                        <el-form-item label="单件商品红包抵扣">
                            <div v-html="viewModel.redPacketDiscount"></div>
                        </el-form-item>
                    </el-col>
                    <el-col :span="12">
                        <el-form-item label="退款金额">
                            <div v-html="viewModel.returnAmount"></div>
                        </el-form-item>
                    </el-col>
                    <el-col :span="12">
                        <el-form-item label="积分赠送">
                            <div v-html="viewModel.sendIntegral"></div>
                        </el-form-item>
                    </el-col>
                    <el-col :span="12">
                        <el-form-item label="系统自动收货时间">
                            <div v-html="viewModel.sysReceiveTime"></div>
                        </el-form-item>
                    </el-col>
                    <el-col :span="12">
                        <el-form-item label="是否已延长收货">
                            <div v-html="viewModel.hasExtendReceive"></div>
                        </el-form-item>
                    </el-col>
                    <el-col :span="12">
                        <el-form-item label="商家改价格时间">
                            <div v-html="viewModel.editPriceTime"></div>
                        </el-form-item>
                    </el-col>
                    <el-col :span="12">
                        <el-form-item label="完成时间">
                            <div v-html="viewModel.finishTime"></div>
                        </el-form-item>
                    </el-col>
                    <el-col :span="12">
                        <el-form-item label="购买数量">
                            <div v-html="viewModel.productCount"></div>
                        </el-form-item>
                    </el-col>
                    <el-col :span="12">
                        <el-form-item label="退货数量">
                            <div v-html="viewModel.returnCount"></div>
                        </el-form-item>
                    </el-col>
                    <el-col :span="12">
                        <el-form-item label="最后提现时间">
                            <div v-html="viewModel.remindTime"></div>
                        </el-form-item>
                    </el-col>
                    <el-col :span="12">
                        <el-form-item label="支付状态">
                            <div v-html="viewModel.payStateName"></div>
                        </el-form-item>
                    </el-col>
        </el-form>
    </div>
</template>

<script>
    import common from "@/mixins/common.js";

    export default {
        name: "orderInfo_view",
        mixins: [common],
        data() {
            return {
                viewModel: {},
                activeIndex: "1"
            }
        },
        async mounted() {
            let id = this.$route.query.id;
            let data = {};
            data.id = id;
            let res = await this.$http.form("/orderInfo/view", data);
            if (res.code === 200) {
                this.viewModel = res.data;
            }
        }
    }
</script>

<style scoped>

</style>